package com.zzty.common;

import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;

public class PropertyUtil {
      private static Properties prop=null;
      public static Properties getProp(){
          if(prop==null){
              prop=new Properties();
              InputStream in=PropertyUtil.class.getResourceAsStream("/application.properties");
              try{
                  prop.load(in);
              }catch(IOException e){
                  e.printStackTrace();
              }
          }
          return prop;
      }
}
